//
//  TextView.m
//  text
//
//  Created by apple on 15/9/17.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "TextView.h"

@implementation TextView


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    //画线；
    CGContextMoveToPoint(context, 200, 200);
    
    CGContextAddLineToPoint(context, 200, 300);
    
    //画圆弧
    
    CGContextAddArc(context, 200, 200, 100, M_PI_2, M_PI, 0);
    
    [[UIColor redColor] setFill];
    
    CGContextFillPath(context);
    
    
    
    //画线；
    CGContextMoveToPoint(context, 200, 200);
    
    CGContextAddLineToPoint(context, 200, 300);
    
    CGContextAddArc(context, 200, 200, 100, M_PI_2, -M_PI, 1);
    
    [[UIColor greenColor] setFill];
    
    CGContextFillPath(context);
    

    
    
    
    
    
    
}


@end
